﻿@model List<지원Model>
@{
    ResLink.AddCss("~/res/css/application/list.css");
}

<h1>강의 지원 목록</h1>
<hr />

<div class="pull-right">
    <a class="btn btn-primary" href='@Url.MyAction("New", "Application")' ><i class="icon-pencil icon-white"></i> 신청서 작성</a>
</div>

<table class="table table-bordered">
    <thead>
        <tr>
            <th>상태</th>
            <th>신청일</th>
            <th>승인일</th>
            <th>신청자</th>
            <th>강의</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var 항목 in Model) {
            <tr onclick="location.href = '@Url.MyAction("Form", "Application", new { id = 항목.ID })'">
                <td>@항목.상태</td>
                <td>@항목.신청일.ToYMDHMS()</td>
                <td>@항목.승인일.ToYMDHMS()</td>
                <td>@항목.이름</td>
                <td>@항목.강의수</td>
            </tr>
        }
    </tbody>
</table>
